/**  
* @Title: StudentServiceImpl.java  
* @Package com.ssm.demo.service.impl  
* @Description: TODO(用一句话描述该文件做什么)  
* @author jing Lei 
* @date 2019年1月11日  
* @version V1.0  
*/  

package com.ssm.demo.service.impl.student;

import java.util.List;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import com.ssm.demo.dao.student.IStudentDao;
import com.ssm.demo.model.Student;
import com.ssm.demo.service.impl.BaseServiceImpl;
import com.ssm.demo.service.student.IStudentService;

/**  
* @ClassName: StudentServiceImpl  
* @Description: TODO(这里用一句话描述这个类的作用)  
* @author jing Lei  
* @date 2019年1月11日  
*    
*/
@Service
@Repository
public class StudentServiceImpl extends BaseServiceImpl<Student> implements IStudentService{
	@Resource
	private IStudentDao istudentDao;

	/**
	 * 
	 * 基础方法实现
	 */
	@PostConstruct
	private void postconstruct() {
		baseIdo = istudentDao;
	}

	/**
	 * 
	 * <p>
	 * Title: findByStudentId
	 * </p>
	 * <p>
	 * Description:
	 * </p>
	 * 
	 * @param studentId
	 *            学生id
	 * @return
	 * @see com.ssm.demo.dao.bookborrow.IStudentDao#findByStudentId(int)
	 */
	@Override
	public List<Student> findByStudentNumber(String studentNumber) {
		return istudentDao.findByStudentNumber(studentNumber);
	}

	/**
	 * 
	 * <p>
	 * Title: findByBookId
	 * </p>
	 * <p>
	 * Description:
	 * </p>
	 * 
	 * @param bookNumber
	 *            书籍
	 * @return
	 * @see com.ssm.demo.dao.bookborrow.IStudentDao#findByBookId(int)
	 */
	@Override
	public List<Student> findByStudentName(String studentName) {
		return istudentDao.findByStudentName(studentName);
	}

	/**
	* <p>Title: query</p>  
	* <p>Description: </p>  
	* @param queryName
	* @param queryValue
	* @return  
	* @see com.ssm.demo.dao.bookborrow.IStudentDao#query(java.lang.String, java.lang.String)  
	*/  
	
	@Override
	public List<Student> query(String queryName, String queryValue) {
		return istudentDao.query(queryName, queryValue);
	}
}